home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.3 KB | 33 lines | [TEXT/GEOL] |
- Item 3422979 4-June-90 11:35PDT
-
- From: RDCLARK Clark, Richard
-
- To: D5385 UT Austin, Ken Duncan,PRT
- MACAPP.TECH$ MacApp Technical
-
- Sub: Re: What an Improvement!
-
- Hi Ken --
-
- Much of the improvement that you saw in MacApp build times is due to the way
- that the Pascal compiler handles symbol tables in compiled units. (The RAM
- cache also makes a certain difference.)
-
- When the compiler compiles a Pascal unit, it writes a copy of the symbol
- table to the resource fork of the source code file, in a resource of type
- 'unit'. (If you look at the file both before and after a compile, you'll see
- that its size has gone up.) When the compiler encounters a subsequent USES
- clause, it will read in this symbol table resource instead of including the
- full source text from the unit. For most units, reading the symbol table takes
- considerably less time than reading in the full source text.
-
- If you want a "fair" comparison, try running your tests while passing the
- "-clean" option to Pascal -- this forces the compiler to read in the source
- texts and deletes the saved symbol tables.
-
- ...Richard Clark
- Instructor/Course Designer
- Developer University
- Apple Computer, Inc.
-
-